from django.contrib import admin
from .models import Post

class PostAdmin(admin.ModelAdmin):
	list_display = [ 'name', 
					 'price',
					 'updated', 
					 'timestamp', 
					 'category',
					 'user',
					 ]
	list_filter = ["updated", "timestamp"]

	search_fields = ["name", "price"]				 
	class Meta:
		model = Post

admin.site.register(Post, PostAdmin)